package com.ruoyi.service;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.domain.Community;
import com.ruoyi.fallback.RidServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-information", path = "community", contextId = "CommService",fallbackFactory = RidServiceFallbackFactory.class)
public interface CommService {

    @GetMapping(value = "/{id}")
    AjaxResult getInfo(@PathVariable("id") Long id);

    @PutMapping
    AjaxResult edit(@RequestBody Community community);
}
